﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBO;
using DBO.Economy;
using ClientDataAccess;

namespace ClientBusinessManagement
{
    public class ClientDataHandler
    {
        public static Resources GetPlayerResources()
        {
            return _handler.GetPlayerResources(ClientDataSingleton.Instance.Player);
        }

        public static bool BuySlot(string type)
        {
            return _handler.BuySlot(ClientDataSingleton.Instance.Player, type);
        }

        public static bool SellSlot(string type)
        {
            return _handler.SellSlot(ClientDataSingleton.Instance.Player, type);
        }

        public static int CountSlots(string TroopType)
        {
            return _handler.CountSlots(ClientDataSingleton.Instance.Player, TroopType);
        }

        public static string[] GetSquad(int size)
        {
            return _handler.GetSquad(ClientDataSingleton.Instance.Player, size);
        }

        public static void SetSquad(string[] squad, int size)
        {
            _handler.SetSquad(ClientDataSingleton.Instance.Player, squad, size);
        }

        private static ClientPlayerHandler _handler = new ClientPlayerHandler();
    }
}
